home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 June / EnigmA AMIGA RUN 19 (1997)(G.R. Edizioni)(IT)[!][issue 1997-06][EAR-CD III].iso / softwareupdate / system / atapi_pnp300 / installa.italiano < prev    next >
Text File  |  1996-09-18  |  18KB  |  681 lines

  1. ; ************************************************
  2. ; *
  3. ; * $VER: Install-ATAPI PnP v1.00 (07.09.95)
  4. ; *
  5. ; * Installation for Atapi Package v 1.00
  6. ; *
  7. ; * Copyright © 1995 by Georg Campana
  8. ; *
  9. ; ************************************************
  10.  
  11. ;/// Variabili
  12. ; ****************************
  13. ;       Variabili
  14. ; ****************************
  15. ;
  16.  
  17. (set DemoVersion        1) ; Demo Version
  18. (set ProductName        "ATAPI PnP ITALIAN VERSION"  )  ; product name
  19. (set ProductBaseName    "Atapi PnP")                    ; product base name
  20. (set VersionNum         "3.00")                         ; product version number
  21.  
  22. (set OSVersion          (/ (getversion) 65536))
  23. (set PctDone            0)
  24.  
  25. (set CPUOpts            0)    ; 0=68000,68010; 1=68020,68030,68040
  26.  
  27. (makeassign "CDPLUSPLUS" "" (safe))
  28.  
  29. (set Disk1Name                  "CDPLUSPLUS:")
  30.  
  31. (set MemSpace 1024)   ; 1K minimo di spazio necessario su disco
  32.  
  33. ;///
  34.  
  35. ;/// Proc setPkgOPts
  36. (procedure setPkgOpts
  37. ;
  38. ; ****************************
  39. ; * Wich Parts
  40. ; ****************************
  41. ;
  42.   (
  43.         (set PkgOpts
  44.                 (askoptions
  45.                         (prompt
  46.                            "Scegli le parti che vuoi installare"
  47.                            ("del pacchetto %s" ProductName)
  48.                         )
  49.                         (help
  50.                                 "Questa parte dell'installazione ti permette di scegliere quali moduli del"
  51.                                 (" pacchetto %s vuoi installare.\n" ProductName)
  52.                                 "\n"
  53.                                 "*** Atapi Device Driver\n"
  54.                                 "Questa opzione farà si che verrà installato il device"
  55.                                 " driver (cd.device )nella directory Devs: (Fondamentale)\n"
  56.                                 "\n"
  57.                                 "*** CDplusplusFS\n"
  58.                                 "Questa opzione installerà il file system proprietario"
  59.                                 " della CD++ nella directory L: (Consigliato).\n"
  60.                                 "\n"
  61.                                 "*** MAP-Mini Atapi Player\n"
  62.                                 "Questa opzione installerà una utility che permette la"
  63.                                 " riproduzione di CD-Audio anche misti.\n"
  64.                                 "\n"
  65.                                 "*** TRKDownLoad Track-Downloader\n"
  66.                                 "Questa opzione farà installare un utility che permette"
  67.                                 " il salvataggio su file di parti di tracce audio o dati.\n"
  68.                                 "\n"
  69.                                 "*** PlayCDXL\n"
  70.                                 "Questa opzione installerà un utility che permette la"
  71.                                 " riproduzione in tempo reale di film CDXL.\n"
  72.                                 "\n"
  73.                                 "*** CD_IDE\n"
  74.                                 "Questa opzione installerà un utility che permette di"
  75.                                 " settare alcune opzioni speciali.\n"
  76.                                 "\n"
  77.                                 @askoptions-help
  78.                         )
  79.                         (choices
  80.                                 ; bit position 0 -- todo & 1
  81.                                 ;
  82.                                 "Atapi Device Driver          (21 Kbytes)"
  83.  
  84.                                 ; bit position 1 -- todo & 2
  85.                                 ;
  86.                                 "CDplusplusFS - CD Filesystem (23 Kbytes)"
  87.  
  88.                                 ; bit position 2 -- todo & 4
  89.                                 ;
  90.                                 "MAP- Mini Atapi Player       (10 Kbytes)"
  91.  
  92.                                 ; bit position 3 -- todo & 8
  93.                                 ;
  94.                                 "TRKDownLoad- Track DownLoader(28 Kbytes)"
  95.  
  96.                                 ; bit position 4 -- todo & 16
  97.                                 ;
  98.                                 "PlayCDXL - Player Film CDXL  (23 Kbytes)"
  99.                                 ; bit position 5 -- todo & 32
  100.                                 ;
  101.                                 "CD_IDE -Preferenze del Device (8 Kbytes)"
  102.  
  103.                         )
  104.                 )
  105.         )
  106.   )
  107. )
  108. ;///
  109.  
  110. ;/// Proc setDirPath
  111.  
  112. (procedure setDirPath
  113. ;
  114. ; ****************************
  115. ; * Ask the user for a directory name.
  116. ; ****************************
  117. ;
  118. ; these variables must be defined before calling this procedure:
  119. ;    setDirPathWhy
  120. ;    setDirPathHelp
  121. ;    DirPath
  122. ;
  123. ; this procedure returns the selected directory in DirPath
  124. ;
  125.    (
  126.  
  127.        (set DirPath
  128.                (askdir
  129.                        (prompt ("Seleziona il disco sul quale installare il pacchetto\n(IL DISCO DI BOOT.   Normalmente SYS: )" )
  130.  
  131.                        )
  132.                        (help   "Il Pacchetto verrà installato sul disco"
  133.                                " prescelto .\n"
  134.                                "Se volete installare il pacchetto su un dischetto"
  135.                                " bootabile inserite quest'ultimo e sceglietelo"
  136.                                " dalla lista che si presenta\n"
  137.                                "\n"
  138.                                @askdir-help
  139.                        )
  140.                        (disk)
  141.                        (default "SYS:")
  142.                )
  143.        )
  144.  
  145.  
  146.  
  147.    )
  148. )
  149. ;///
  150.  
  151. ;/// Proc AskFsIcon
  152. ;
  153. ;
  154. (procedure AskFsIcon
  155. ;
  156. ; This procedure ask of wich cd Icon you want to install with wich Name
  157. ; It requires initialization of variables:
  158. ;
  159. ; In "DefaultIcon" ci deve essere quella accesa di default
  160. ; Ridà in "IconChoose" qual icona
  161. ; 0 nessuna - 1 AmiCDFilesystem
  162. ; 2 AmiCDFS - 3 CDfilesystem - 4 CDplusplusFS
  163. ;
  164.   (
  165.     (set IconChoose
  166.      
  167.            (askchoice
  168.                 (prompt "Scegli per quale CD-Filesystem installare l'icona")
  169.                 (help
  170.                         "Potete scegliere per quale filesystem"
  171.                         " installare il pacchetto.\n"
  172.                         "Nel caso che abbiate installato il"
  173.                         " CDpluplusFS , scegliete quest'ultimo.\n"
  174.                         "\n"
  175.                         "Se il filesystem in vostro possesso"
  176.                         " non è presente tra quelli nella lista"
  177.                         " scegliete -Nessuno- e modificate nei"
  178.                         " tooltype dell'icona del vostro device"
  179.                         " CD la voce Device con\nDevice=cd.device\n"
  180.                         "e la voce Unit con\nUnit=0\n"
  181.                         @askchoice-help
  182.                 )
  183.                 (choices
  184.                         "-Nessuno"
  185.                         "-AmiCDFileSystem - by Nicola Salmoria"
  186.                         "-cdrom-handler   - by Frank Munkert"
  187.                         "-CDFileSystem    - by CBM Commodore"
  188.                         "-AsimCDFS        - by AsimWare"
  189.                         "-QDriveFileSystem- by Amiga Tech."
  190.                         "-CDplusplusFS    - by CD++"
  191.                 )
  192.                 (default DefaultIcon)
  193.            )
  194.     )
  195.   )
  196. )
  197. ;///
  198.  
  199. ;/// Proc GetDevName
  200. ;
  201. ;  in DevName si ritrova il nome da usare per l'icona
  202. ;
  203.  
  204.  
  205. (procedure GetDevName
  206.    
  207.    (
  208.      (set DevName
  209.            (askstring
  210.                      (prompt "Scrivi il nome per il device CD-Rom senza i due punti\nEs. CD0")
  211.                      (help
  212.                              "Il nome scelto sarà quello del"
  213.                              " Device fisico\n"
  214.                              "E' conveniente non scegliere"
  215.                              " nomi troppo lunghi\n"
  216.                              "\nE' consigliabile CD0 o CD1 ecc."
  217.                              " dato che molti programmi cercano"
  218.                              " questo nome\n"
  219.                      )
  220.                      (default "CD0")
  221.            )
  222.      )
  223.    )
  224. )
  225. ;///
  226.  
  227. ;/// Proc AskAutoMount
  228. ;
  229. ;
  230. (procedure AskAutoMount
  231. ;
  232. ; Chiede se l'icona deve essere inserita nel devs Dosdrivers o nel
  233. ; storage dosdrivers
  234. ;
  235.   (
  236.     (set AutoMount
  237.      
  238.            (askbool
  239.                 (prompt "Vuoi che il device Atapi venga montato"
  240.                         " automaticamente ad ogni riavvio ,od"
  241.                         " a ogni accensione ?"
  242.                 )
  243.                 (help
  244.                         "Rispondendo positivamente l'icona del"
  245.                         " device verrà posta nel cassetto:\n"
  246.                         "Devs:Dosdrivers\n"
  247.                         "In questo modo il lettore CD-ROM sarà disponibile"
  248.                         " ad ogni riavvio o accensione della macchina\n\n"
  249.                         "Altrimemti in: Storage:DosDrivers\n"
  250.                         "ed il lettore sarà utilizzabile solo dopo aver cliccato due volte sulla sua Icona"
  251.                 )
  252.                 (choices
  253.                         "Monta al Riavvio"
  254.                         "No,Montaggio manuale"
  255.                 )
  256.                 (default 1)
  257.            )
  258.     )
  259.   )
  260. )
  261. ;///
  262.  
  263.  
  264. ; *************************************************************************
  265. ; *                         ACTUAL START OF SCRIPT
  266. ; *
  267. ; * Ask all questions for the user now, do all of the work later.
  268. ; *************************************************************************
  269. ;
  270. ;/// MAIN SCRIPT
  271. (onerror
  272.  
  273. )
  274. ; ****************************
  275. ;  Check for OS Version
  276. ; ****************************
  277.  
  278. (if (= DemoVersion 1)
  279.     (message "\n" "\n"
  280.              "Attenzione: Questa è una versione DEMO\n"
  281.              "del Pacchetto Atapi PnP !\n"
  282.              "PUOI RIDISTRIBUIRE IL DISCO\n"
  283.              "COMPLETO A CHIUNQUE (tranne ai Crakker)" "\n"
  284.              "\n"
  285.              "Atapi Plug'n Play is Copyright by \n"
  286.              "Georg Campana & Marco Campinoti ©1994\n\n"
  287.              "E-Mail: georg@etruscan.li.it\n"
  288.  
  289.              (help "Per avere la versione registrata , completamente funzionante leggete il manuale o chiamate : 0565/850621 e 0565/853005")
  290.     )
  291.  
  292.     (message "\n" "\n"
  293.              "Attenzione: Questa è la versione Registrata\n"
  294.              "del Pacchetto Atapi PnP !\n"
  295.              "E' VIETATO RIDISTRIBUIRE QUALSIASI FILE\n"
  296.              "PRESENTE IN QUESTO DISCHETTO" "\n"
  297.              "( I file sono contrassegnati )\n"
  298.              "Atapi Plug'n Play is Copyright by \n"
  299.              "Georg Campana & Marco Campinoti ©1994\n\n"
  300.              "E-Mail: georg@etruscan.li.it\n"
  301.  
  302.              (help "Se volete fare registrare chiamate: 0565/850621 o 0565/853005")
  303.     )
  304. )
  305.  
  306.  
  307. ; ****************************
  308. ; ****************************
  309. ;
  310.  
  311. (set DirPath "SYS:")
  312.  
  313. (setDirPath)
  314.  
  315. (set @default-dest DirPath)
  316.  
  317. (set devdest  (tackon @default-dest "Devs"))
  318. (set fsdest   (tackon @default-dest "L"))
  319. (set utildest (tackon @default-dest "Utilities"))
  320. (set prefdest (tackon @default-dest "Prefs"))
  321.  
  322.  
  323. (setPkgOpts)
  324.  
  325. (set DefaultIcon 0)
  326.  
  327. (if (= (exists (tackon fsdest "AmiCDFileSystem")) 1)
  328.     (set DefaultIcon 1)
  329. )
  330.  
  331. (if (= (exists (tackon fsdest "cdrom-handler")) 1)
  332.     (set DefaultIcon 2)
  333. )
  334.  
  335. (if (= (exists (tackon fsdest "CDFileSystem")) 1)
  336.     (set DefaultIcon 3)
  337. )
  338.  
  339. (if (= (exists (tackon fsdest "AsimCDFS")) 1)
  340.     (set DefaultIcon 4)
  341. )
  342.  
  343. (if (= (exists (tackon fsdest "QDriveFileSystem")) 1)
  344.     (set DefaultIcon 5)
  345. )
  346.  
  347. (if (= (exists (tackon fsdest "CDplusplusFS")) 1)
  348.     (set DefaultIcon 6)
  349. )
  350.  
  351.  
  352. (if (IN PkgOpts 1)
  353.     (set DefaultIcon 6)
  354. )
  355.  
  356. (AskFsIcon)
  357.  
  358. (select IconChoose
  359.    (set FsName 0)
  360.    (set FsName "AmiCDFS")
  361.    (set FsName "AmiCDHandler")
  362.    (set FsName "CbmCDFS")
  363.    (set FsName "AsimCDFS")
  364.    (set FsName "QDriveFilesystem")
  365.    (set FsName "CDplusplusFS")
  366. )
  367.  
  368.  
  369. (set AutoMount 1)
  370. (set DevName "CD0")
  371.  
  372. (if (> @user-level 1)
  373.  
  374.     (if (<> IconChoose 0)
  375.         (
  376.          (GetDevName)
  377.          (AskAutoMount)
  378.         )
  379.     )
  380. )
  381.  
  382. (if (= AutoMount 1)
  383.     (set Icondest  (tackon @default-dest "Devs"))
  384.     (set Icondest  (tackon @default-dest "Storage"))
  385. )
  386.  
  387.  
  388.  
  389.  
  390.  
  391. (if (IN PkgOpts 0)
  392.     (set MemSpace (+ MemSpace 21000))
  393. )
  394. (if (IN PkgOpts 1)
  395.     (set MemSpace (+ MemSpace 23000))
  396. )
  397. (if (IN PkgOpts 2)
  398.     (set MemSpace (+ MemSpace 10000))
  399. )
  400. (if (IN PkgOpts 3)
  401.     (set MemSpace (+ MemSpace 28000))
  402. )
  403. (if (IN PkgOpts 4)
  404.     (set MemSpace (+ MemSpace 23000))
  405. )
  406. (if (IN PkgOpts 5)
  407.     (set MemSpace (+ MemSpace 8000))
  408. )
  409. (if (<> IconChoose )
  410.     (set MemSpace (+ MemSpace 1000))
  411. )
  412.  
  413. (if (< (getdiskspace DirPath) MemSpace)
  414.     (if(> (getdiskspace DirPath) 0)
  415.        (
  416.           (abort "ATTENZIONE: Lo spazio disponibile\n"
  417.                  ("sul disco %s\n" DirPath)
  418.                  ("è di soli %ld bytes\n" (getdiskspace DirPath) )
  419.                  ("e ne servono almeno %ld\n" MemSpace)
  420.                  "\n"
  421.                  "Rilanciate l'icona di Installazione\n"
  422.                  "e selezionate meno utility , oppure\n"
  423.                  "cancellate qualche file dal vostro\n"
  424.                  ("disco %s\n" DirPath)
  425.           )
  426.        )
  427.     )
  428. )
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. ; if bit position 0 is on  Installa device
  444. (if (IN PkgOpts 0)
  445.      (
  446.  
  447.        (if (< (exists devdest (noreq)) 2)
  448.  
  449.            (makedir devdest
  450.               (prompt "Creo una directory -Devs-")
  451.               (infos)
  452.            )
  453.  
  454.            (if (= DemoVersion 0)
  455.               (
  456.  
  457.                (set newver (getversion (tackon Disk1Name "devs/cd.device")))
  458.                (set oldver (getversion (tackon devdest   "cd.device")))
  459.  
  460.                (if (= newver oldver)
  461.                    (delete (tackon devdest   "cd.device"))
  462.                )
  463.               )
  464.            )
  465.        )
  466.  
  467.        (if (< OSVersion 39)
  468.          (
  469.            (copylib
  470.                (prompt "Installo Device Driver")
  471.                (source (tackon Disk1Name "devs/cd_a600.device"))
  472.                (newname "cd.device")
  473.                (dest  devdest)
  474.                (optional force)
  475.            )
  476.          )
  477.  
  478.          (
  479.            (copylib
  480.                (prompt "Installo Device Driver")
  481.                (source (tackon Disk1Name "devs/cd.device"))
  482.                (dest devdest)
  483.                (optional force)
  484.            )
  485.          )
  486.        )
  487.      )
  488. )
  489. ; if bit position 1 is on Installa FileSystem
  490. (if (IN PkgOpts 1)
  491.      (
  492.  
  493.  
  494.  
  495.  
  496.         (if (< (exists fsdest (noreq)) 2)
  497.  
  498.             (makedir fsdest
  499.                (prompt "Creo una directory -L-")
  500.             )
  501.         )
  502.  
  503.  
  504.         (copylib
  505.             (prompt "Installo FileSystem della CD++")
  506.             (source (tackon Disk1Name "l/CDplusplusFS"))
  507.             (dest fsdest)
  508.             (optional force)
  509.         )
  510.         
  511.  
  512.      )
  513. )
  514.  
  515. ; if bit position 2 is on Installa MAP
  516. (if (IN PkgOpts 2)
  517.      (
  518.  
  519.         
  520.         (if (< (exists utildest (noreq)) 2)
  521.  
  522.             (makedir utildest
  523.                (prompt "Creo una directory -Utilities-")
  524.                (infos)
  525.             )
  526.         )
  527.  
  528.  
  529.         (copyfiles
  530.             (prompt "Installo Mini Atapi Player")
  531.             (source (tackon Disk1Name "utilities/MAP"))
  532.             (dest utildest)
  533.             (infos)
  534.             (optional force)
  535.         )
  536.         
  537.  
  538.      )
  539. )
  540.  
  541. ; if bit position 3 is on Installa TRKDownLoad
  542. (if (IN PkgOpts 3)
  543.      (
  544.  
  545.         
  546.         (if (< (exists utildest (noreq)) 2)
  547.  
  548.             (makedir utildest
  549.                (prompt "Creo una directory -Utilities-")
  550.                (infos)
  551.             )
  552.         )
  553.  
  554.  
  555.         (copyfiles
  556.             (prompt "Installo TrkDownLoader")
  557.             (source (tackon Disk1Name "utilities/TRKDownLoad"))
  558.             (dest utildest)
  559.             (infos)
  560.             (optional force)
  561.         )
  562.         
  563.  
  564.      )
  565. )
  566.  
  567. ; if bit position 4 is on Installa PlayCDXL
  568. (if (<> DemoVersion 2) ; NOTA messo a 2 che è diverso da 0 e 1
  569.    (if (IN PkgOpts 4)
  570.         (
  571.  
  572.            
  573.            (if (< (exists utildest (noreq)) 2)
  574.  
  575.                (makedir utildest
  576.                   (prompt "Creo una directory -Utilities-")
  577.                   (infos)
  578.                )
  579.            )
  580.  
  581.  
  582.            (copyfiles
  583.                (prompt "Installo PlayCDXL")
  584.                (source (tackon Disk1Name "utilities/PlayCDXL"))
  585.                (dest utildest)
  586.                (infos)
  587.                (optional force)
  588.            )
  589.            
  590.  
  591.         )
  592.    )
  593. )
  594.  
  595. ; if bit position 5 is on  Installa CD_IDE
  596. (if (IN PkgOpts 5)
  597.      (
  598.  
  599.  
  600.         (if (< (exists prefdest (noreq)) 2)
  601.  
  602.             (makedir prefdest
  603.                (prompt "Creo una directory -Prefs-")
  604.                (infos)
  605.             )
  606.         )
  607.  
  608.  
  609.         (copyfiles
  610.             (prompt "Installo CD_IDE")
  611.             (source (tackon Disk1Name "prefs/CD_IDE"))
  612.             (dest prefdest)
  613.             (infos)
  614.             (optional force)
  615.         )
  616.  
  617.  
  618.      )
  619. )
  620.  
  621.  
  622.  
  623.  
  624. (if (> IconChoose 0)
  625.     (
  626.         (if (< (exists Icondest (noreq)) 2)
  627.  
  628.             (makedir Icondest
  629.                (prompt "Creo una directory Devs o Storage")
  630.                (infos)
  631.             )
  632.         )
  633.  
  634.         (set Icondest  (tackon Icondest "Dosdrivers"))
  635.          
  636.         (copyfiles
  637.             (prompt "Installo l'Icona del Device")
  638.             (source (tackon Disk1Name (tackon "Devs/Storage" FsName)))
  639.             (dest IconDest)
  640.             (newname  DevName)
  641.             (infos)
  642.             (optional force)
  643.         )
  644.  
  645.     
  646.         (if (= AutoMount 1)
  647.             ( message "\n" "\n"
  648.                    "Ad ogni riavvio del calcolatore o ad ogni\n"
  649.                    "accensione- il lettore CD-ROM verrà \"Montato\"\n"
  650.                    "automaticamente !\n"
  651.                    "\n"
  652.                    "Potete disabilitare questo automatismo\n"
  653.                    ("trascinando l'icona %s dal cassetto " DevName)
  654.                    "Devs/Dosdrivers nel cassetto Storage/Dosdrivers\n"
  655.             )
  656.             ( message "\n" "\n"
  657.                    "Potete \"Montare\"\n il lettore CD-ROM\n"
  658.                    ("cliccando semplicemente sull'Icona %s\n" DevName)
  659.                    "nel cassetto Storage/Dosdrivers\n"
  660.                    "Per abilitare il montaggio automatico\n"
  661.                    "trascinate l'Icona nel cassetto Devs/Dosdrivers"
  662.             )
  663.         )
  664.     )
  665.     ( message "\n" "\n"
  666.            "Non è stata installata alcuna Icona per\n"
  667.            "il montaggio del lettore CD-ROM .\n"
  668.            "E' necessario quindi costruirsi quest'ultima\n"
  669.            "autonomamente seguendo le istruzioni del\n"
  670.            "proprio filesystem !\n"
  671.            "\n"
  672.            "Potete anche rilanciare l'icona di installazione\n"
  673.            "e selezionare un filesystem alla richiesta\n"
  674.     )
  675.  
  676. )
  677.  
  678. (exit)
  679. ;///
  680.